﻿
//string name = "张三";
//byte age = 35;
//int mils = age * 365 * 24 * 60 * 60;
//double a = 1235875.25654;
//bool f = false;

//Console.WriteLine($"name={name},age={age},mils={mils},a={a},f={f}");

//运算符 +-*/ % < > == <= >= && || 
int first = 1;
int second = 2;

//Console.WriteLine($"a+b={first + second}");
//Console.WriteLine($"a-b={first - second}");
//Console.WriteLine($"a*b={first * second}");
//Console.WriteLine($"a/b={first / second}");
//Console.WriteLine($"a>b={first > second}");
//Console.WriteLine($"a<b={first < second}");
//Console.WriteLine($"a==b={first == second}");
//Console.WriteLine($"a<=b={first <= second}");
//Console.WriteLine($"a>=b={first >= second}");

bool ar = false;
bool br = true;
//Console.WriteLine($"a+b={ar && br}");
//Console.WriteLine($"a+b={ar || br}");


//控制结构：顺序、条件、循环
//顺序执行： 一步一步执行，

//if (first > second)
//{
//    Console.WriteLine("大于");
//}
//else
//{
//    Console.WriteLine("不大于");
//}


//for (int i = 0; i < 10; i++)
//{
//    Console.WriteLine($"i={i}");
//}

int wh = 0;
//while (wh<10)
//{
//    wh++;
//    Console.WriteLine($"i={wh}");
//}

do
{
    wh++;
    Console.WriteLine($"i={wh}");
}
while (wh < 10);


Console.ReadLine();
